//
//  AreaCell.m
//  Lovelife
//
//  Created by dllo on 15/4/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "AreaCell.h"
@implementation AreaCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.photo = [[UIImageView alloc]init];
        self.photo.backgroundColor = [UIColor redColor];
        [self addSubview:self.photo];
        [_photo release];
        
        self.nameLabel = [[BaseLabel alloc]init];
        self.nameLabel.numberOfLines = 0;
        self.nameLabel.textColor = [UIColor whiteColor];
        [self addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.photo.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
    self.nameLabel.frame = CGRectMake(0, self.frame.size.height - 60, self.frame.size.width, 60);
}

- (void)dealloc{
    
    [_photo release];
    [_nameLabel release];
    [super dealloc];
}

@end
